package model 
{
	import model.data.NPCTypes;
	/**
	 * ...
	 * @author Gaz Williams
	 * 
	 * 
	 * factory class for getting the descriptive text for npc's the player interacts with
	 * 
	 */
	public class NPCDescription 
	{
		
		private static var descriptions:Array;
		
		public static function getText(forNPC:NPCTypes):String
		{
			if ( descriptions == null) 
			{
				descriptions = new Array(9);
				
				descriptions[NPCTypes.BROKEN_MONITOR] 	= "The screen is broken on this monitor....";
				descriptions[NPCTypes.BROKEN_TABLE] 	= "This computer table has been broken in half!";
				descriptions[NPCTypes.DEAD_RAT] 		= "A large, rather smelly dead rat";
				descriptions[NPCTypes.FRIDGE] 			= "The office fridge is missing its handle!!";
				descriptions[NPCTypes.MICROWAVE] 		= "The office microwave is onfire!!";
				descriptions[NPCTypes.PRINTER] 			= "There is smoke coming from the office printer!";
				descriptions[NPCTypes.TROPHY] 			= "Where is the manager's trophy?!?!?";
				descriptions[NPCTypes.WASTE_BIN] 		= "A waste bin";
				descriptions[NPCTypes.WATER_COOLER] 	= "The office water cooler has sprung a leak!";
				
			}
			
			return descriptions[forNPC];
		}
	}

}